getMetadata

abstract fun getMetadata(block: DesignBlock, key: String): String

Get a metadata value of a block identified by a key. If the key does not exist, yet, this method will fail.

Return

the value associated with the key.

Parameters

block

the block whose metadata will be accessed.

key

the key used to identify the desired piece of metadata.